import pygame, sys, random, os

class Sound:
    def __init__(self):
        pass
   
    def load_sound(self,file):
        class No_Sound:
            def play(self):
                pass
        if not pygame.mixer or not pygame.mixer.get_init():
            return No_Sound
        
        filename = os.path.join('Sounds', file)
        if os.path.exists(filename) != False:
            sound = pygame.mixer.Sound(filename)
        else:
            print ('File does not exist:', filename)
            return No_Sound
        
        return sound
    
    def play_sound(self, soundfile):
        sound2 = self.load_sound(soundfile)
        sound2.play()
    
    def stop_sound(self, soundfile):
        soundfile.stop()